import request from '@/utils/request'

export function getUserList() {
  return new Promise((resolve, reject) => {
    setTimeout(() => {
      resolve([
        { name: 'zhangsan', age: 22 },
        { name: 'lisi', age: 32 }
      ])
    }, 3000)
  })
}

export function getUser() {
  return new Promise((resolve, reject) => {
    setTimeout(() => {
      resolve({ name: 'zhangsan', age: 22 })
    }, 3000)
  })
}

export function getDicts() {
  return request({
    url: '/dict/init',
    method: 'get'
  })
}
